import { ElMessage } from 'element-plus'

// 消息提示
export const messageApi = (type, message) => {
  if (type) {
    return ElMessage({
      type,
      message,
      duration: 1700
    })
  } else {
    return ElMessage
  }

}
